import React, { Component } from 'react'
import { Link } from 'react-router-dom';

export default class Detail extends Component {
  componentWillMount() {
    console.log(this.props.match.params.goodsid);
  }
  render() {
    return (
      <div>
        <p>商品详情</p>
        <p>goodsid:{this.props.match.params.goodsid}</p>
        <Link to="/detail/666">看看666</Link>
      </div>
    )
  }
}
